package com.i8office.android.zhihuixinwu.module.contract;

import com.cyan.tools.base.BasePresenter;
import com.cyan.tools.base.BaseView;
import com.cyan.tools.callback.RequestCallback;
import com.i8office.android.zhihuixinwu.bean.Code;
import com.i8office.android.zhihuixinwu.bean.Empl;

import java.util.List;
import java.util.Map;

import io.reactivex.disposables.Disposable;

/**
 * Created by pc on 2018/7/8.
 */

public interface AddOpinionContract {
    interface Model {
        Disposable addOpinion(RequestCallback<Code> callback, String content);
        Disposable saveCell(RequestCallback<Code> callback, Map<String,String> params);
        Disposable saveCells(RequestCallback<Code> callback, List<Map<String,String>> paramsList);
    }

    interface View extends BaseView{
        void succeed();
        void saveSuccess();
        void messageHandlerResult(Empl empl);
        void sendSuccess();
        void sendNotifiCationResult();
        void requestError();
    }

    interface Presenter extends BasePresenter{
        void addOpinion(String content);
        void saveCell(Map<String,String> params);
        void saveMoreCell(Map<String,String> params);
        void saveMoreCellArrays(List<Map<String,String>> paramsList);
        void messageHandler(Map<String,String> params);
        void send(Map<String,String> params);
        void sendNotification(Map<String, String> map);
    }
}
